import request from '@/utils/request'

// 1. AI对话接口
export function aiChatAsk(chatId, message) {
  return request({
    url: '/front/help/ai/ask',
    method: 'get',
    params: { chatId, message }
  })
}

// 2. 查询用户聊天记录
export function getChatMemoryList() {
  return request({
    url: '/front/help/ai/getMemoryList',
    method: 'get'
  })
}

// 3. 根据chatId查询聊天内容
export function getMemoryByChatId(chatId) {
  return request({
    url: '/front/help/ai/getMemoryByChatId',
    method: 'get',
    params: { chatId }
  })
}
